﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="SanPham_List.aspx.cs" Inherits="Admin_SanPham_List" Title="Danh sách sản phẩm" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
 <div>
        <div class="title">
            Danh sách Sản Phẩm</div>
        <div style="width:100%;">
            <div style="display:table-cell; width:78%;float:left;">
                Tên Sản Phẩm:<asp:TextBox ID="txt_tensp" runat="server"></asp:TextBox>
                &nbsp;Danh Mục:<asp:DropDownList ID="ddl_danhmuc" runat="server" Width="112px">
                </asp:DropDownList>
                &nbsp;&nbsp;&nbsp;<asp:Button ID="btn_Tim" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" Width="120px" />           
            </div>
            <div class="addnewrow" style="display:table-cell; width:11%;float:right;">
                <a href="SanPham_Add.aspx" Font-Bold="False" Font-Italic="True" Font-Size="Small" Font-Strikeout="False">Thêm mới</a>
                &nbsp;<asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click" Font-Bold="False" Font-Italic="True" Font-Size="Small" Font-Strikeout="False">Xóa</asp:LinkButton>
            </div>        
        </div>
        <div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                <thead>
                    <tr class="listtableheader">
                        <th>Mã</th>
                        <th>Tên Sản Phẩm</th>
                        <th>Danh Mục</th>
                        <th>Hình Ảnh</th>
                        <th>Gía Gốc</th>
                        <th>Giá Bán</th>
                        <th>Tình Trạng</th>
                        <th>Sửa</th>
                        <th>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td><%#Eval("MaSP") %></td>
                <td><asp:HyperLink ID="hyp_tensp" runat="server"></asp:HyperLink></td>
                <td><asp:Literal ID="lit_danhmuc" runat="server" /></td>
                <td>
                    <asp:Image ID="img_hinhanh" Width ="100" Height = "100" runat="server" />
                </td>
                <td><%#Eval("giagoc") %></td>
                <td><%#Eval("giaban") %></td>
                  <td><asp:HyperLink ID="hyp_tinhtrang" runat="server"></asp:HyperLink></td>
                <td><asp:HyperLink ID="hpl_Edit" Text="Edit" runat="server" /></td>
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" Value='<%#Eval("MaSP") %>' runat="server" />
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater> 
        </div>
        <div style="width:100%;"> 
            <div style="float:left; width: 1008px; text-align: center; height: 48px;">      
                <cc1:pagerv2_8 id="Pager" runat="server" OnCommand="Pager_Command"></cc1:pagerv2_8>
           </div>
        </div>
 </div>
 </div>
</asp:Content>

